-- GENERATED SPELL FOR [Murta Grimgut] --


function spell0_7608(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(11642,pUnit)
pUnit:RegisterEvent('Sorts_7608', 3500, 1)
end

function spell1_7608(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(9734,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7608', 2500, 1)
end

function spell2_7608(pUnit, Event) --@Power Word: Shield,n/a--
pUnit:FullCastSpellOnTarget(11974,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7608', 30266, 1)
end

function spell3_7608(pUnit, Event) --@Renew,Heal--
pUnit:FullCastSpellOnTarget(11640,pUnit)
pUnit:RegisterEvent('Sorts_7608', 15000, 1)
end

function Sorts_7608(pUnit, Event)
local choix_sorts_7608 = math.random(0, 3)
if choix_sorts_7608 == 0 then
pUnit:RegisterEvent('spell0_7608', 1, 1)
end
if choix_sorts_7608 == 1 then
pUnit:RegisterEvent('spell1_7608', 1, 1)
end
if choix_sorts_7608 == 2 then
pUnit:RegisterEvent('spell2_7608', 1, 1)
end
if choix_sorts_7608 == 3 then
pUnit:RegisterEvent('spell3_7608', 1, 1)
end
end

function mob7608_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7608', math.random(1500, 3000), 1)
end

function mob7608_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7608_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7608_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7608, 1, 'mob7608_Action')
RegisterUnitEvent(7608, 2, 'mob7608_Leave')
RegisterUnitEvent(7608, 3, 'mob7608_Kill')
RegisterUnitEvent(7608, 4, 'mob7608_Die')
